﻿using System;

using Spencen.Mobile.UI;
using Spencen.Mobile.UI.Controls;
using Spencen.Mobile.UI.Primitives;
using Spencen.Mobile.Markup;
using Spencen.Mobile.UI.Navigation;

namespace Demo.Presenters
{
    public class DragPresenter : ParentedPresenter
    {
        public DragPresenter( INavigator navigator ) : base( navigator )
        {
        }

        public override View CreateView( IDrawingHost host )
        {
            // XAML Loading
            var text = (System.IO.Stream)System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream( "Demo.Views.DragView.xml" );
            var xamlRenderer = new XamlRenderer( host, this );
            var view = (View)xamlRenderer.Render( text );
            return view;
        }
    }
}
